//
//  RootViewController.m
//  Cook
//
//  Created by Macbookpro on 15/4/14.
//  Copyright (c) 2015年 dingjun. All rights reserved.
//

#import "RootViewController.h"
#import "ClassifyController.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (void)dealloc
{
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatClassify];
}

- (void)creatClassify
{
    ClassifyController *second = [[ClassifyController alloc] init];
    [self addChildViewController:second];
    [self.view addSubview:second.view];
    second.view.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
    [second release];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
